<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="../../common/js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="../../common/js/jquery-1.11.1.min.js"></script>
    <script src="../../common/js/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<style>
    *{margin:0px;padding:0px}
    #wrap1{width:auto}
    .submit {
        color: white;
        background-color: #22a3f9;
        width: 100%;
        height: 45px;
        font-size: 2rem;
        border-style: none;
        margin: 0 auto;
        border: 0px !important;
    }

    .submit:hover {
        background-color: #22a3f9;
    }
</style>
<div style="padding: 10%;margin-top:10% ">
    <div style="width: 100%; text-align: center;">
        <img src="../../example/images/okay.png" width="40%" id="wrap2" style="margin: 0px auto;display: block;"/>

    </div>
    <div style="width: 100%; text-align: center; margin-bottom: 30px;">
        <h2 style="font-size: 3rem;font-weight: bold;color: #9B9B9B;"></h2>
    </div>
    <button type="button" class="btn btn-primary submit" onclick="submit()">登&nbsp;&nbsp;录</button>
</div>
<script>
    function getParameter(name) {//获取url传递过来的参数
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
    (function(){
        var type = getParameter('type');
        if(type  === 'reg'){
            $('h2').text("注册成功");
        }else if (type === 'pwd') {
            $('h2').text("修改成功");
        }
    })();

    function submit() {
        window.wa.backToLogin();
    }
</script>
</body>
</html>